-- CALC_ARTIFACT_RANK
-- 计算神器的阶位

return function(artifactId)
    local level = ArtifactM.getArtifactLevel(artifactId);
    local rank = 3;
    if level > 5 then
        rank = 6;
    elseif level > 3 then
        rank = 5;
    elseif level > 1 then
        rank = 4;
    end

    return rank;
end